package com.base.cn.platform.os.service.manage.netSchoolConfig.publicAccount;

import com.base.cn.platform.os.service.FeignAuthConfig;
import com.base.cn.platform.os.service.manage.BaseService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;

/**
 * 公众号配置接口
 *
 * @author zsw
 * @create 2019-04-18
 */
@FeignClient(value = BaseService.appName,configuration = FeignAuthConfig.class)
public interface PublicAccountService extends BaseService {

    /**
     * 查询公众号配置信息
     *
     * @param publicAccount
     * @return
     */
    @RequestMapping(contextPath + "/queryPublicAccount")
    List<Map<String,Object>> queryPublicAccount(@RequestBody Map<String, Object> publicAccount);

    /**
     * 保存公众号配置数据
     *
     * @param publicAccount
     * @return
     */
    @RequestMapping(contextPath + "/saveAccountConfig")
    Map<String,Object> saveAccountConfig(@RequestBody Map<String, Object> publicAccount);

    /**
     * 更新公众号配置数据
     *
     * @param publicAccount
     * @return
     */
    @RequestMapping(contextPath + "/updateAccountConfig")
    Map<String,Object> updateAccountConfig(@RequestBody Map<String, Object> publicAccount);
}
